第7步:将最新的事件分配给一个全新键 - “s”!

记住,代码行 stage.event_key("a",·a_key)¬ 称为事件处理器。

  • def·a_key(): 代码行中将事件名称更改为 s_key
  • 将事件处理器中的第一个参数更改为 "s"
  • 将事件处理器中的第二个参数更改为 s_key

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)